cd /d %~dp0
set path=%path%;%cd%
set arg1=%1
set arg1=%arg1:/=\%
set pids=%arg1%.%random%

cat %1 >%pids%
call treeps.bat %1 %pids%
for /f %%p in (%pids%) do   if not "x%%p" == "" taskkill /f /PID %%p


del %pids%
del %arg1%
:end
